<?php
 if($detail_transport->num_rows()>0)
 {
     $row=$detail_transport->row();
 } 
?>

<div id="wrapper-content" style="width: 600px;">
<table class="titrepage" width="100%">
        <tr>
            <td >Tarif</td>
            <td align="right">Total | <?php echo $total ?> </td>
       </tr>
    </table>
      <div align="left" id="ajouter">
        <table>
            <tr>
                <td><a href="<?php echo site_url('transport/ajouter_tarif/'.$row->id) ?>">Ajouter nouveau tarif</a></td>
            </tr>
        </table>
    </div>
           <?php if(!empty($tarif_transport)){ ?>
        <table align="center" width="100%" class="list">
            <thead>
                <tr>
                    <th>De</th>
                    <th>A</th>
                    <th>Prix/kg</th>
                     <th >Action</th>
                </tr>
            </thead>
            <?php foreach ($tarif_transport as $aRow): ?>
                <tr>
                    <td><?php echo $aRow['min']; ?></td>
                    <td><?php echo $aRow['max']; ?></td>
                    <td><?php echo $aRow['tarif']; ?>€</td>
                 <td width="70px">
                    <a class="supprimer" href="#" ><img border="0"src="<?php echo root_url('zoo-market') . 'assets/admin/' ?>images/supprimer.png"/></a>
                    <div style="display:none">
                        		    	Confirmer <br/>
                        <a href="<?php echo site_url('transport/delete_tarif') . '/'.$row->id.'/' . $aRow['id']; ?>"> <img border="0"src="<?php echo root_url('zoo-market') . 'assets/admin/' ?>images/oui.png"/></a>
                    <a class="non" href="#" ><img  border="0"src="<?php echo root_url('zoo-market') . 'assets/admin/' ?>images/non.png"/></a>
                </div>
            </td>
        </tr>
<?php endforeach; ?>
            </table>
  <?php echo $pagination; ?>
    <?php  }else{?>
 <div align="center">Aucun résultat</div>
    <?php }?>
</div>
<!--END wrapper-content-->

